Skip to content

[Visual] Compute bounding box in VisualMesh#5985

Open
alxbilger wants to merge 1 commit intosofa-framework:masterfrom
alxbilger:bboxvisualmesh
Open

[Visual] Compute bounding box in VisualMesh#5985
alxbilger wants to merge 1 commit intosofa-framework:masterfrom
alxbilger:bboxvisualmesh

Conversation

@alxbilger
Copy link
Contributor


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@alxbilger alxbilger requested a review from fredroy March 2, 2026 14:20
@alxbilger alxbilger added pr: enhancement About a possible enhancement pr: status to review To notify reviewers to review this pull-request labels Mar 2, 2026
Copy link
Contributor

@fredroy fredroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And should computeBBox() compute BBox if:

  • computeOnlyVisible is true (meaning computeBBox was called for rendering)
  • vparams->displayFlags().getShowVisualModels() is false ?

?

}
}

void VisualMesh::computeBBox(const core::ExecParams* exec_params, bool cond)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
void VisualMesh::computeBBox(const core::ExecParams* exec_params, bool cond)
void VisualMesh::computeBBox(const core::ExecParams* exec_params, bool computeOnlyVisible)

cond is not really.... informative 🫢


void VisualMesh::computeBBox(const core::ExecParams* exec_params, bool cond)
{
if (!d_enable.getValue())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (!d_enable.getValue())
SOFA_UNUSED(computeOnlyVisible);
if (!d_enable.getValue())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: enhancement About a possible enhancement pr: status to review To notify reviewers to review this pull-request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants